import {CompeteConstant} from "../../../../gcg/libs/constants/CompeteConstant.js";
import {Foe} from "../../../../gcg/libs/foe/foe/Foe.js";

export class FoeSquare {
    init(){
        //初始化敌军对象
        let foe = new Foe();
        let foeClass = 'foe';
        //设置类
        foe.setClass(foeClass);
        //对抗属性
        foe.compete = CompeteConstant.FOE;
        //设置初始位置
        foe.setStartSit([
            {top:0,left:205},
            {top:0,left:115},
            {top:0,left:325}
        ]);
        foe.defaultDirection = 'down';
        //创建3个方块
        foe.createFoes(3);
        foe.setDescription('方块单元');
        return foe;
    }
}
